﻿package plugin.accomplishment
{
    import com.core.*;
    import com.sh.game.consts.*;
    import com.sh.game.global.*;
    import plugin.accomplishment.consts.*;
    import view.*;

    public class Accomplishment extends FlashUIBase
    {
        private var _ui:AccomplishmentCon;

        public function Accomplishment()
        {
            return;
        }// end function

        override protected function preLoaderInit() : void
        {
            super.preLoaderInit();
            appendLoader(Config.getUrl("assets/images/mornui/common.swf", ResourceType.NORMAL));
            appendLoader(Config.getUrl("assets/images/mornui/Accomplishment.swf", ResourceType.NORMAL));
            return;
        }// end function

        override protected function initGUI() : void
        {
            this._ui = new AccomplishmentCon(this);
            mGUI = this._ui;
            return;
        }// end function

        override protected function openRefresh() : void
        {
            var _loc_1:* = UserData.getOnlineData("guide");
            ModelProxy.change("plugin", "sendSysMsg", {name:"achievement", param:0, cmd:CMDAchievement.GetAchievement});
            this._ui.tabHandler(int(data));
            return;
        }// end function

        override protected function closeComplete() : void
        {
            super.closeComplete();
            this._ui.clearMC();
            return;
        }// end function

    }
}
